<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">

<head>

    <div th:include="path::sub_path_css" ></div>

</head>

<body class="gray-bg ">
    <div class="gr-dg">
                <div class="col-sm-12 select-sty search-choice">
                    <form class="form-inline" id="form_search">
                        <div class="form-group">
                            <label>URL：</label>
                            <input type="text" name="url" id="url" placeholder="URL" class="form-control search-form-in">
                        </div>
                        <div class="form-group">
                            <label>类型：</label>
                            <select class="search-form-in" name="menuType" id="menuType" th:with="menuType=${@dictValue.findDictByKey('menu_type')}" style="width: 15vw;">
                                <option value="">全部</option>
                                <option th:each="dict : ${menuType}" th:text="${dict.dictText}" th:value="${dict.dictValue}"></option>
                            </select>
                        </div>
                        <div class="form-group">
                            <a href="#" class="btn btn-primary btn-rounded" onclick="$.table.formSearch('form_search');">查询</a>
                            <a class="btn btn-success btn-rounded" href="#" onclick="$.table.reset();">重置</a>
                        </div>
                    </form>
                </div>
                <div class="toolbar-group" id="toolbar" role="group">
                    <shiro:hasPermission name="sys:menu:add">
                        <a class="btn btn-success" onclick="$.modal.openAdd();">
                            <i class="fa fa-plus"></i> 新增
                        </a>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="sys:menu:edit">
                        <a class="btn btn-primary" onclick="$.modal.openEdit();">
                            <i class="fa fa-edit"></i> 修改
                        </a>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="sys:menu:remove">
                        <a class="btn btn-info" onclick="$.modal.remove();">
                            <i class="fa fa-exchange"></i> 删除
                        </a>
                    </shiro:hasPermission>
                </div>
                <div class="col-sm-12 white-bg teble-sty">
                    <table id="gdTable" data-mobile-responsive="true">
                    </table>
                </div>
    </div>

    <div th:include="path::sub_path_js" ></div>

    <script th:inline="javascript">
        var datas = [[${@dictValue.findDictByKey('menu_type')}]];
    </script>
    <script th:inline="javascript" type="text/javascript" th:src="@{/js/fly-admin/system/menu/menu_list.js}"></script>
</body>

</html>
